Filter hook 'expiration_of_transient_{$transient}'

in WP Core File wp-includes/option.php at line 1507

Description

Filters the expiration for a transient before its value is set. The dynamic portion of the hook name, `$transient`, refers to the transient name.

Occurrences

Filename Line Number
wp-includes/option.php 1507

Parameters

Type Name Description
int $expiration Time until expiration in seconds. Use 0 for no expiration.
mixed $value New value of transient.
string $transient Transient name.

PHP Doc

/**
	 * Filters the expiration for a transient before its value is set.
	 *
	 * The dynamic portion of the hook name, `$transient`, refers to the transient name.
	 *
	 * @since 4.4.0
	 *
	 * @param int    $expiration Time until expiration in seconds. Use 0 for no expiration.
	 * @param mixed  $value      New value of transient.
	 * @param string $transient  Transient name.
	 */